import request from "../../utils/request";
import type {
  GetClassificationList,
  GetClassifiedRecommendationList,
  GetHotSongList,
} from "./model/radio";

//电台类型接口函数
export const getClassificationList = () => {
  return request.get<any, GetClassificationList>("/dj/catelist");
};

//电台分类推荐接口函数  /dj/recommend/type
export const getClassifiedRecommendationList = (id = 3) => {
  return request.get<any, GetClassifiedRecommendationList>(
    `/dj/recommend/type?type=${id}`
  );
};

//类别热门电台接口函数 /dj/radio/hot
export const getHotSongList = (cateId = 3) => {
  return request.get<any, GetHotSongList>(`/dj/radio/hot?cateId=${cateId}`);
};
